<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class MoneyWithdraw
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $user_id
 * @property int $level_id
 * @property string $level_config
 * @property string $order_number
 * @property int $amount
 * @property int $coupon_amount
 * @property int $coupon_amount_before
 * @property int $withdraw_validbet
 * @property int $validbet
 * @property int $fee
 * @property int $fee_before
 * @property int $admin_fee
 * @property int $admin_fee_before
 * @property int $user_bank_id
 * @property string $user_bank_info
 * @property bool $has_fee
 * @property bool $is_admin
 * @property bool $is_first
 * @property int $lock_admin_id
 * @property int $created_admin_id
 * @property int $updated_admin_id
 * @property \Carbon\Carbon $previous_time
 * @property \Carbon\Carbon $confirm_time
 * @property \Carbon\Carbon $check_time
 * @property int $type
 * @property string $ip
 * @property int $status
 * @property string $remark
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class MoneyWithdraw extends Eloquent
{
	protected $table = 'money_withdraw';

	protected $casts = [
		'hall_id' => 'int',
		'user_id' => 'int',
		'level_id' => 'int',
		'amount' => 'int',
		'coupon_amount' => 'int',
		'coupon_amount_before' => 'int',
		'withdraw_validbet' => 'int',
		'validbet' => 'int',
		'fee' => 'int',
		'fee_before' => 'int',
		'admin_fee' => 'int',
		'admin_fee_before' => 'int',
		'user_bank_id' => 'int',
		'has_fee' => 'bool',
		'is_admin' => 'bool',
		'is_first' => 'bool',
		'lock_admin_id' => 'int',
		'created_admin_id' => 'int',
		'updated_admin_id' => 'int',
		'type' => 'int',
		'status' => 'int'
	];

	protected $dates = [
		'previous_time',
		'confirm_time',
		'check_time'
	];

	protected $fillable = [
		'hall_id',
		'user_id',
		'level_id',
		'level_config',
		'order_number',
		'amount',
		'coupon_amount',
		'coupon_amount_before',
		'withdraw_validbet',
		'validbet',
		'fee',
		'fee_before',
		'admin_fee',
		'admin_fee_before',
		'user_bank_id',
		'user_bank_info',
		'has_fee',
		'is_admin',
		'is_first',
		'lock_admin_id',
		'created_admin_id',
		'updated_admin_id',
		'previous_time',
		'confirm_time',
		'check_time',
		'type',
		'ip',
		'status',
		'remark'
	];
}
